package cn.zhaotianen.retrofit.service;

import cn.zhaotianen.retrofit.domain.GitHubInfo;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * <p>
 * <pre>
 * ***************************************************************
 *  Package: cn.zhaotianen.retrofit.service
 *  Description:
 *  @since 1.0.0
 *  @author zhaotianen
 *  @date 16/7/2
 *  @time 11:24
 * ***************************************************************
 * </pre>
 */
public  interface RequestService {
    @GET("/users/{user}")
    Call<GitHubInfo> getUserInfo(@Path("user") String user);

    @GET("/users/{user}")
    Observable<GitHubInfo> getUser(@Path("user") String user);




}